package com.yao.sample.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@Entity
@NamedQueries({
	@NamedQuery(name="word.all",query="select w from Word as w")
})
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class Word {
//	private Pronounce pronounce;   //单词发音: 分为英式发音和美式发音，暂时预留，以后再做
	@Id
	private String spelling;
	@Lob @Column
	@XmlElement(name="simpleMeans")
	private com.yao.sample.bean.SimpleMean simpleMean;
	
	public Word() {
	}
	
	public Word(String spelling) {
		super();
		this.spelling = spelling;
	}

	public String getSpelling() {
		return spelling;
	}

	public void setSpelling(String spelling) {
		this.spelling = spelling;
	}

	public com.yao.sample.bean.SimpleMean getSimpleMean() {
		return simpleMean;
	}

	public void setSimpleMean(com.yao.sample.bean.SimpleMean simpleMean) {
		this.simpleMean = simpleMean;
	}
	
	
}
